﻿<Window x:Class="XapSpyAnalysisWPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        Title="XapSpyAnalysis" Height="500" Width="800" Loaded="Window_Loaded" MinHeight="500" MinWidth="800" SizeChanged="Window_SizeChanged">
    <DockPanel Name="DockPanel">
        <Menu Name="Menu" DockPanel.Dock="Top">
            <MenuItem Header="File" Name="FileMenuItem">
                <MenuItem Header="Open" Name="OpenMenuItem" Click="OpenMenuItem_Click"></MenuItem>
                <!--<MenuItem Header="Save Statistic" Name="SaveMenuItem" Click="SaveMenuItem_Click"></MenuItem>-->
                <Separator Name="SeparatorFile" />
                <MenuItem Header="Exit" Name="ExitMenuItem" Click="ExitMenuItem_Click"></MenuItem>
            </MenuItem>
            
            <MenuItem Header="Help" Name="HelpMenuItem">
                <MenuItem Header ="Instructions" Name="InstructionsMenuItem" Click="InstructionsMenuItem_Click"/>
                <MenuItem Header="About" Name="AboutMenuItem" Click="AboutMenuItem_Click"/>
            </MenuItem>
        </Menu>
        <StatusBar Name="StatusBar" DockPanel.Dock="Bottom">
            <StatusBarItem Name="StatusMessageBarItem">
                <Label Name="StatusMessageLabel" Content="Application started."/>
            </StatusBarItem>
        </StatusBar>
        <TabControl Name="tabControl" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
            <TabItem Header="Raw Data" Name="RawDataTab">
                    <DataGrid Name="RawDataGrid" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" />
            </TabItem>
            <TabItem Header="List of method counts" Name="MethodCountTab">
                    <DataGrid Name="MethodCountDataGrid" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" HorizontalAlignment="Stretch" />
            </TabItem>
            <TabItem Header="Statistics" Name="StatisticsTab">
                    <StackPanel Orientation ="Vertical">
                    <Label Name="NumberMethodsLabel" Content="Number of methods: "/>
                    <Label Name="NumberUniqueMethodsLabel" Content="Number of unique methods: "/>
                </StackPanel>
            </TabItem>
            <TabItem Header="Graphic Analysis" Name="GraphicAnalysisTab">
                <StackPanel Name="graphicStackPanel" Orientation="Horizontal">
                    <d3:ChartPlotter Name="plotter" Margin="10" MinWidth="500">
                        <d3:ChartPlotter.HorizontalAxis>
                            <d3:HorizontalDateTimeAxis Name="dateAxis"/>
                        </d3:ChartPlotter.HorizontalAxis>
                        <d3:ChartPlotter.VerticalAxis>
                            <d3:VerticalIntegerAxis Name="methodAxis" MinWidth="30" />
                        </d3:ChartPlotter.VerticalAxis>

                        <d3:Header FontFamily="Arial" Content="Called methods over time"/>
                        <d3:VerticalAxisTitle FontFamily="Arial" Content="Methodnumber"/>
                        <d3:HorizontalAxisTitle FontFamily="Arial" Content="Time"/>
                    </d3:ChartPlotter>
                    <Label Name="legendHeaderLabel" Content="Legend: "/>
                    <ScrollViewer Name="legenScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
                        <Label Name="legendLabel" Content=""/>
                    </ScrollViewer>
                </StackPanel>
            </TabItem>
        </TabControl>
    </DockPanel>
</Window>
